package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongUnitHouseRowMapper implements RowMapper<NanDongUnitHouse> {
    @Override
    public NanDongUnitHouse mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongUnitHouse nd=new NanDongUnitHouse();
        nd.setId(resultSet.getInt("id"));
        nd.setUnit_type(resultSet.getString("unit_type"));
        nd.setUnit_name(resultSet.getString("unit_name"));
        nd.setAdress(resultSet.getString("adress"));
        nd.setDriver_person(resultSet.getString("driver_person"));
        nd.setPhone(resultSet.getString("phone"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
